package com.guozi.controller;
import org.springframework.stereotype.Controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
@Controller
public class HelloController {
	@RequestMapping(value="/hello")
	public ModelAndView hello(){
	ModelAndView m=new ModelAndView();
	m.addObject("mess", "hello!");
	m.setViewName("hello");
	return m;
	}

}
